﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习3
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("1+1/2+2/3+3/4+.....+99/100的值为");
            double k = 1;
            for (int i = 1; i < 100; i++)
            {
                k = k + i / (i + 1.0);
            }
            Console.WriteLine(k);
            Console.ReadKey();
        }
    }
}
